package crond

import (
	"context"
	"system-admin/config/redis"
	"system-admin/internal/app/web/service/merchant"
	"system-admin/internal/define"
)

// 商户缓存检查
func MerchantCacheCheck() {
	exists, _ := redis.NewDB().Exists(context.Background(), define.RedisMerchantList).Result()
	if exists <= 0 {
		merchant.LoadMerchantToRedis()
	}
}
